package com.wu.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName HospConfig
 * @Author 浮生光
 * @Date 2022/6/27 22:51
 * @Description HospConfig
 * @Version 1.0
 */
@Configuration // 表明自己是配置类，在系统启动时会去加载当前配置
@MapperScan("com.wu.yygh.hosp.mapper")
public class HospConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
